package com.tang.provider.config;

import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

/**
 * @author Tang
 * @classname MyLifeCycle
 * @description [  ]
 * @date 2022/2/3 21:23
 */
@Component
public class MyLifeCycle implements SmartLifecycle {

    @Override
    public void start() {
        System.out.println("start....");
    }

    @Override
    public void stop() {
        System.out.println("stop....");
    }

    @Override
    public boolean isRunning() {
        return false;
    }
}